package po;


import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * <p>  
 *  TbCrowd 群信息表
 * </p>
 * @author  XieTao
 * @date 2020-04-10 
 */

public class TbCrowd  implements Serializable {


	/**
	 * 群ID
	 */
	private String cid;

	/**
	 * 群号
	 */
	private String cnumber;

	/**
	 * 群名称
	 */
	private String cname;

	/**
	 * 群所属用户ID
	 */
	private String uid;

	/**
	 * 头像URL
	 */
	private String icon;

	/**
	 * 群介绍
	 */
	private String introduce;

	/**
	 * 群类型
	 */
	private String ctype;

	/**
	 * 群状态
	 */
	private Integer state;

	/**
	 * 创建时间
	 */
	private Date createtime;

	/**
	 * 是否被删除
	 */
	private Integer isDelete;

	public String getCid() {
		return cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

	public String getCnumber() {
		return cnumber;
	}

	public void setCnumber(String cnumber) {
		this.cnumber = cnumber;
	}

	public String getCname() {
		return cname;
	}

	public void setCname(String cname) {
		this.cname = cname;
	}

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getIntroduce() {
		return introduce;
	}

	public void setIntroduce(String introduce) {
		this.introduce = introduce;
	}

	public String getCtype() {
		return ctype;
	}

	public void setCtype(String ctype) {
		this.ctype = ctype;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	@Override
	public String toString() {
		return "TbCrowd{" +
				"cid='" + cid + '\'' +
				", cnumber='" + cnumber + '\'' +
				", cname='" + cname + '\'' +
				", uid='" + uid + '\'' +
				", icon='" + icon + '\'' +
				", introduce='" + introduce + '\'' +
				", ctype='" + ctype + '\'' +
				", state=" + state +
				", createtime=" + createtime +
				", isDelete=" + isDelete +
				'}';
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (!(o instanceof TbCrowd)) {
			return false;
		}
		TbCrowd tbCrowd = (TbCrowd) o;
		return Objects.equals(cid, tbCrowd.cid) &&
				Objects.equals(cnumber, tbCrowd.cnumber) &&
				Objects.equals(cname, tbCrowd.cname) &&
				Objects.equals(uid, tbCrowd.uid) &&
				Objects.equals(icon, tbCrowd.icon) &&
				Objects.equals(introduce, tbCrowd.introduce) &&
				Objects.equals(ctype, tbCrowd.ctype) &&
				Objects.equals(state, tbCrowd.state) &&
				Objects.equals(createtime, tbCrowd.createtime) &&
				Objects.equals(isDelete, tbCrowd.isDelete);
	}

	@Override
	public int hashCode() {
		return Objects.hash(cid, cnumber, cname, uid, icon, introduce, ctype, state, createtime, isDelete);
	}
}
